package com.xieyong.mywebsite.exception;

import lombok.*;

/**
 * 自定义异常
 * 运行时异常
 */
@EqualsAndHashCode(callSuper = true)
@Data
@AllArgsConstructor
@NoArgsConstructor
public class MyCustomizeException extends RuntimeException {
    private String code;
    private String msg;

    public MyCustomizeException(String msg) {
        this.code = "500";
        this.msg = msg;
    }
}
